<?php

/**
 * $Id: context.php 12 2010-11-28 20:02:53Z LEON $
 * $Author: LEON $
 * $LastChangedDate: 2010-11-28 20:02:53 +0000 (Sun, 28 Nov 2010) $
 * $Revision: 12 $
 */

namespace cmFly\controller\system;

class context {
    protected $base;

    public function __construct(\cmFly\controller\base $base) {
	$this->base = $base;
    }

    public function get_config() {
	return $this->base->get_config();
    }

    /**
     *
     * @return \cmFly\base
     */
    public function get_base() {
	return $this->base;
    }

    /**
     *
     * @param string $name
     * @return \cmFly\db\PDO
     */
    public function get_database($name=NULL) {
	return $this->base->get_database($name);
    }

}